<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>while循环</title>
</head>
<body>

<script>
    // let i = 0;
    // while(i<=5){
    //     console.log(i)
    //     i++;
    // }

    /*输出乘法口诀表*/
    let i = 1
    while(i <= 9){
        let j = 1
        let str = ""
        while(j<=i){
            str += j + "X" + i + "=" +(i*j) +" "
            j++
        }

        console.log(str)

        i++
    }
</script>
</body>
</html>